<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class PinkConfig extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'pink_config';

    protected $guarded = [];

    public function agentPink()
    {
        return $this->belongsTo(Agent::class,'broker_id','id');
    }

    public function pink()
    {
        return $this->hasMany(Pink::class,'group_id','id');
    }

    public static function creation($params)
    {
        return self::create($params);
    }


}
